package 匿名内部类;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-04-07
 * Time:20:44
 */
public class TestDemo {
    class Test{//匿名内部类
        int a=10;
        public void add(){
            System.out.println(a);
        }
    }
    public static void main(String[] args) {
        new Test();//匿名对象
    }
}
